<%--
  Created by Eclipse.
  Author: Yating
  Date  : 2017年5月22日
  Time  : 下午2:36:54
--%>
<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<div class="pageContent">
	<div class="pageFormContent" layoutH="58" id="channelTreePageFormContent">
		${channelTree}
	</div>
	
	<div class="formBar">
		<ul>
			<li><div class="button"><div class="buttonContent"><button class="close" type="button" onclick="back();">确定</button></div></div></li>
		</ul>
	</div>
</div>

<script type="text/javascript">
function back(){

var channelIds=""; //定义一个字符串用来装值的集合    
var channelNames="";
//jquery循环t2下的所有选中的复选框    
$("#channelTreePageFormContent input:checked").each(function(i,a){    
  //alert(a.value);    
  channelIds +=a.value+',';  //拼接字符串   
  channelNames+=a.name+',';
});    
alert(channelIds+"  "+channelNames);    

$.bringBack({
	names:channelNames,
	ids:channelIds
});
}
</script>